package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name   string `gorm:"type:varchar(30)"`
	Passes string `gorm:"type:varchar(50)"`
}
type Cat struct {
	gorm.Model
	CatNo   string `gorm:"type:varchar(50)"`
	CatName string `gorm:"type:varchar(50)"`
	CatCode string `gorm:"type:varchar(50)"`
}
type CarOrder struct {
	gorm.Model
	OrderNo   string `gorm:"type:varchar(50)"` //订单号
	OrderFrom string `gorm:"type:varchar(50)"` //发货地
	OrderTo   string `gorm:"type:varchar(50)"` //目的地
	OrderGood string `gorm:"type:varchar(50)"` //订单商品
	Cid       int    `gorm:"type:int"`         ////车辆id
}
type CarOrderList struct {
	OrderId   int    `gorm:"type:int"`
	CatNo     string `gorm:"type:varchar(50)"`
	CatName   string `gorm:"type:varchar(50)"`
	CatCode   string `gorm:"type:varchar(50)"`
	OrderNo   string `gorm:"type:varchar(50)"` //订单号
	OrderFrom string `gorm:"type:varchar(50)"` //发货地
	OrderTo   string `gorm:"type:varchar(50)"` //目的地
	OrderGood string `gorm:"type:varchar(50)"` //订单商品
}
